import request from '@/utils/request'

// 查询开票任务列表
export function listInvoiceTask(query) {
  return request({
    url: '/invoice/invoiceTask/list',
    method: 'get',
    params: query
  })
}

// 查询开票任务详细
export function getInvoiceTask(invoiceId) {
  return request({
    url: '/invoice/invoiceTask/' + invoiceId,
    method: 'get'
  })
}

// 新增开票任务
export function addInvoiceTask(data) {
  return request({
    url: '/invoice/invoiceTask',
    method: 'post',
    data: data
  })
}

// 修改开票任务
export function updateInvoiceTask(data) {
  return request({
    url: '/invoice/invoiceTask',
    method: 'put',
    data: data
  })
}

// 删除开票任务
export function delInvoiceTask(invoiceId) {
  return request({
    url: '/invoice/invoiceTask/' + invoiceId,
    method: 'delete'
  })
}


